import { configureStore } from '@reduxjs/toolkit';
import userReducer from './userSlice';
import courseReducer from './courseSlice';
import qaReducer from './qaSlice';
import discussionReducer from './discussionSlice';
import adminReducer from './adminSlice';
import learningReducer from './learningSlice';
import userManagementReducer from './userManagementSlice';

// 创建 store
const store = configureStore({
  reducer: {
    user: userReducer,
    course: courseReducer,
    qa: qaReducer,
    discussion: discussionReducer,
    admin: adminReducer,
    learning: learningReducer,
    userManagement: userManagementReducer
  }
});

export default store; 